#define  _CRT_SECURE_NO_WARNINGS 1
#include<stdio.h>
#include<stdlib.h>
int main()
{
	int* p = (int*)malloc(15 * sizeof(int));
	if (p == NULL)
	{
		return 1;
	}

	for (int i = 0; i < 3; i++)
	{
		for (int j = 0; j < 5; j++)
		{
			p[j] = j;
		}

	}


	for (int i = 0; i < 3; i++)
	{
		for (int j = 0; j < 5; j++)
		{
			printf("%d ", p[i]);
		}
		printf("\n");

	}
	free(p);
	p = NULL;


	return 0;
}
